<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    .box{
        display: flex;
        border: 1px solid black;
        margin: 10px;
    }
    .box1{
        align-self: auto;
    }
    .box2{
        align-self: flex-start;
    }
    .box3{
        align-self: flex-end;
    }
    .box4{
        align-self: center;
    }
    .box5{
        align-self: baseline;
    }
    .box6{
        align-self: stretch;
    }
    .block{
        height: 100px;
        width: 100px;
        margin: 10px;
        background-color:red;
    }
</style>
</head>
<body>
    <div   class="box box1">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
    <div   class="box box2">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
    <div   class="box box3">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
    <div   class="box box4">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
    <div   class="box box5">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
    <div   class="box box6">
        <div class="block">1</div>
        <div class="block">2</div>
        <div class="block">3</div>
        <div class="block">4</div>
        <div class="block">5</div>
    </div>
 
</body>
</html>